package com.logan.uc.repositorys;

import com.logan.uc.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaSpecificationExecutor<User>, JpaRepository<User, String> {

    <T> T findByUsername(String username, Class<T> classType);
}
